﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.AutoMap;
using FluentNHibernate.AutoMap.Alterations;
using SimpleServiceBus.Persistence.Domain.Management.Entities;

namespace SimpleServiceBus.Persistence.NHibernate.Mapping.AutoMapping.Overrides
{
    public class EndpointErrorAutoMapOverride : IAutoMappingOverride<EndpointError>
    {
        public void Override(AutoMap<EndpointError> mapping)
        {
            mapping.Map(error => error.ErrorMessage).WithMaxSize();
        }
    }
}
